home *** CD-ROM | disk | FTP | other *** search
/ Palm Utilities / Palm_Utilities_CD-ROM_2001_2001.iso / files / graphics conversion / Sweetheart 1.1 / sweetheart11.exe / src / gcc-pilot / greyscale.h < prev    next >
Encoding:
Text File  |  1997-09-03  |  1.1 KB  |  28 lines

  1. void GraySwitchDisplayMode
  2. (short int mode, unsigned char **displayaddr);
  3. // This performs all the register accesses to switch
  4. // between grayscale and black and white modes.
  5. // The displayaddr variable is used in the following way:
  6. // on calling this procedure, load displayaddr with a
  7. // pointer to the address of the new display starting
  8. // address. The function will return a pointer to the
  9. // old address in the same way. The calling procedure is
  10. // responsible for saving and then giving back the old
  11. // black and white display starting address.
  12. // (mode=1 is switch to grayscale, mode=0 is switch to
  13. // black and white)
  14.  
  15.  
  16. void GraySetPalette
  17. (short int gray0, short int gray1, short int gray2,
  18. short int gray3);
  19. // This sets the palette of the 4 active shades of gray
  20. // out of a selection of 7. The four parameters represent
  21. // the shades of the 00, 01, 10, and 11 bit patterns,
  22. // respectively. The palette of 7 is as follows, in
  23. // terms of darkness density:
  24. // 0=0/16, 1=4/16, 2=5/16, 3=8/16, 4=11/16, 5=12/16,
  25. // 6=16/16, and 7=16/16. There are two active bit values
  26. // for solid black; either will work.
  27.  
  28.